'use strict'
var app = getApp();

function editItem(temporalItem) {
    app.globalData.user_form[app.globalData.user_form[0].edit_num].item_name = temporalItem.name;
    app.globalData.user_form[app.globalData.user_form[0].edit_num].item_des = temporalItem.notice;
    app.globalData.user_form[app.globalData.user_form[0].edit_num].item_nec = temporalItem.switchValue;
}

module.exports = editItem;